﻿using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace EcoSystem
{
    /// <summary>
    /// 报表请求参数字段定义项
    /// </summary>
    [NotMapped]
    [Serializable]
    public class ReportRequestFieldItem : RequestFieldItem
    {
        /// <summary>
        /// 参数类别
        /// </summary>
        public RequestFieldTypeEnum Type { get; set; }

        /// <summary>
        /// 表单项标签
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 格式化处理
        /// </summary>
        public ReportRequestFieldFormatter Formatter { get; set; }

        /// <summary>
        ///组件参数
        /// </summary>
        public ComponentOptions ComponentOptions { get; set; }

        /// <summary>
        /// 显示规则定义
        /// </summary>
        public DisplayRoleOption DisplayRole { get; set; }
    }

}
